package com.bj.dz.service.impl;


import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import com.bj.dz.entity.Role;
import com.bj.dz.mapper.RoleMapper;
import com.bj.dz.service.RoleService;
import org.springframework.stereotype.Service;

@Service("roleService")
public class RoleServiceImp implements RoleService {
	@Resource
	private RoleMapper rd;

	/**
	 * ��ѯ���н�ɫ
	 */
	@Override
	public List<Role> findRoles() {
		List<Role> roleList=rd.findRoles();
		if(roleList==null){
			roleList=new ArrayList<Role>();
		}
		return roleList;
	}
	
	
}
